package com.youbar.client.dto.user;

import java.io.Serializable;

/**
 * 注册实体
 */
public class RegisterDto implements Serializable {

    public interface UserRegisterValidView {
    }

//    @NotNull(message = "手机号码不能为空")
//    @Pattern(regexp = "^1(3|4|5|7|8)\\d{9}$",message = "手机号码格式错误")
    private String mobile;

//    @NotNull(message = "密码不能为空")
    private String password;

//    @NotNull(message = "密码不能为空",groups = {UserRegisterValidView.class})
    private String passwordAgain;

//    @NotNull(message = "密码不能为空")
    private String code;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordAgain() {
        return passwordAgain;
    }

    public void setPasswordAgain(String passwordAgain) {
        this.passwordAgain = passwordAgain;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
